<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/static/member/themes/YouErJiaoYu/header.jsp" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport"
	content="width=device-width initial-scale=1.0  maximum-scale=1.0">
<link href="${ctxStatic}/jquery-mobile/css/jquery.mobile-1.3.1.min.css" type="text/css" rel="stylesheet" />
<title>作业评论</title>
<script type="text/javascript">

$(document).ready(function() {
	$("#errorMessage").hide()
});

</script>
</head>
<body>


<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">${homework.name }</div>
  <div class="panel-body">
    <p>${homework.content }</p>
  </div>
	
  <!-- List group -->
  <ul class="list-group">
  	<c:if test="${educomment!=null }">
  			 <li class="list-group-item">
  			 评价：
  			 <c:if test="${educomment.level==0 }"><span >优</span></c:if>
  			 <c:if test="${educomment.level==1 }"><span class="text-primary">良</span></c:if>
  			 <c:if test="${educomment.level==2 }"><span class="text-success">中</span></c:if>
  			 <c:if test="${educomment.level==3 }"><span class="text-info">差</span></c:if>
  			 <c:if test="${educomment.level==4 }"><span class="text-warning">不及格</span></c:if>
  			 </li>
		    <li class="list-group-item">@${educomment.student.name }评语：${educomment.comment }</li>
  	</c:if>
  	<c:if test="${educomment==null }">
  			 <li class="list-group-item">暂时还没有评论哦</li>
  	</c:if>
  </ul>
</div>


</body>


<jsp:include page="./footer.jsp"></jsp:include>
</html>